#include "VSPEEndFunction.h"
#include "VSGraphicInclude.h"
using namespace VSEngine2;
IMPLEMENT_RTTI(VSPEEndFunction,VSPostEffectFunction)
static bool gs_bStreamRegistered_VSPEEndFunction= VSPEEndFunction::RegisterMainFactory ();
bool VSPEEndFunction::ms_bRegisterMainFactory = false;
bool VSPEEndFunction::RegisterMainFactory()
{
	if (!ms_bRegisterMainFactory)
	{ 
		VSMain::AddInitialFuntion(VSPEEndFunction::InitialClassFactory); 
		ms_bRegisterMainFactory = true;
	} 
	return ms_bRegisterMainFactory;

}
bool VSPEEndFunction::InitialClassFactory()
{
	ms_ClassFactory.AddElement(ms_Type.GetName(),FactoryFunc);

	return 1;
}
VSObject * VSPEEndFunction::FactoryFunc()
{
	return VS_NEW VSPEEndFunction();

}
VSPostEffectSceneRender * VSPEEndFunction::CreateSceneRender()
{
	return NULL;
}
void VSPEEndFunction::OnDraw(VSCuller & Culler,double dAppTime)
{
	return;
}
VSPEEndFunction::VSPEEndFunction(const VSUsedName & ShowName,VSPostEffectSet * pPostEffectSet)
:VSPostEffectFunction(ShowName,pPostEffectSet)
{

	VSInputNode * pInputNode = NULL;
	pInputNode = VS_NEW VSInputNode(VSPutNode::PET_OUT,_T("InputColor"),this);
	VSMAC_ASSERT(pInputNode);
	m_pInput.AddElement(pInputNode);
}
VSPEEndFunction::~VSPEEndFunction()
{

}
VSPEEndFunction::VSPEEndFunction()
{

}